package com.huibeili.marketing;


import com.huibeili.common.annotation.UnAuth;
import com.huibeili.common.core.controller.BaseController;
import com.huibeili.common.core.domain.AjaxResult;
import com.huibeili.marketing.domain.GroupMarketingShow;
import com.huibeili.marketing.domain.MarketingCate;
import com.huibeili.marketing.domain.MarketingPic;
import com.huibeili.marketing.service.GroupMarketingShowService;
import com.huibeili.marketing.service.GroupMarketingShowServiceApi;
import com.huibeili.marketing.service.MarketingCateService;
import com.huibeili.marketing.service.MarketingPicService;
import com.huibeili.sms.domain.SmsVideo;
import com.huibeili.sms.service.ISmsVideoService;
import com.huibeili.util.CommonConstant;
import com.huibeili.util.PageHelper;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 视频促销控制器
 *
 * @author 汇贝力商城 created on 2020/6/2
 */
@RestController
@Api(description = "视频促销接口")
public class VideoController  extends BaseController {

    /**
     * 注入视频服务接口
     */
    @Autowired
    private ISmsVideoService videoService;


    /**
     * 分页查询视频活动列表
     *
     */
    @GetMapping("/videoList")
    @ApiOperation(value = "分页查询视频活动列表", notes = "分页查询视频活动列表")
    public AjaxResult list(SmsVideo smsVideo) {
        startPage();
        List<SmsVideo> list = videoService.selectSmsVideoList(smsVideo);
        return AjaxResult.success(getDataTable(list));
    }



}
